﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using System.ComponentModel;

namespace jqGrid.Models
{
    public class FileSystemInfoViewModel
    {
        #region Properties
        public string Name { get; set; }

        [DisplayName("Creation Time")]
        public string CreationTime { get; set; }

        [DisplayName("Last Access Time")]
        public string LastAccessTime { get; set; }

        [DisplayName("Last Write Time")]
        public string LastWriteTime { get; set; }
        #endregion

        #region Constructor
        public FileSystemInfoViewModel(FileSystemInfo info)
        {
            Name = info.Name;
            CreationTime = info.CreationTime.ToString();
            LastAccessTime = info.LastAccessTime.ToString();
            LastWriteTime = info.LastWriteTime.ToString();
        }
        #endregion
    }
}